package com.ruoyi.law.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.domain.SortBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 收益记录
 * </p>
 *
 * @author code
 * @since 2022-11-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "LawEarningRecord对象", description = "收益记录")
public class LawEarningRecord extends SortBaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "订单号")
    private String num;

    /**
     * 收入类型(参考OrderType)
     * {@link com.ruoyi.law.enums.OrderType}
     */
    @ApiModelProperty(value = "分红类型（vip,服务,咨询）")
    private String earningType;

    @ApiModelProperty(value = "项目id(包括服务id，咨询id，vipid)")
    private Long serviceId;

    @ApiModelProperty(value = "金额")
    private BigDecimal price;

    @ApiModelProperty(value = "分红时间")
    private LocalDateTime time;

    @ApiModelProperty(value = "状态")
    private String state;


}
